package com.multiplayer.service;

import java.util.List;

import com.multiplayer.entity.StudyRoom;
import com.multiplayer.tools.PageData;

public interface IStudyRoomService {
	/**
	 * 添加自习室
	 * @param studyRoom
	 * @return
	 */
	public boolean addStudyRoom(StudyRoom studyRoom);
	/**
	 * 删除自习室
	 * @param studyRoomId
	 * @return
	 */
	public boolean deleteStudyRoomById(String studyRoomId);
	/**
	 * 修改自习室信息
	 * @param studyRoom
	 * @return
	 */
	public boolean editStudyRoom(StudyRoom studyRoom);
	/**
	 * 通过模糊查询获得自习室信息
	 * @param keywords
	 * @return
	 */
	public List<StudyRoom> queryStudyRoomByKeywords(String keywords);
	/**
	 * 通过自习室编号查询自习室信息
	 * @param studyRoomId
	 * @return
	 */
	public List<StudyRoom> queryStudyRoomById(String studyRoomId);
	/**
	 * 关闭自习室
	 * @param studyRoom
	 * @return
	 */
	public boolean closeStudyRoom(StudyRoom studyRoom);
	/**
	 * 通过模糊查询分页显示自习室信息
	 * @param page
	 * @param pageSize
	 * @param keywords
	 * @return
	 */
	public PageData<StudyRoom> getStudyRoomByPage(int page, int pageSize, String keywords);
}
